<?
ob_start();
session_start();

$globals_test = @ini_get('register_globals');
if ( isset($globals_test) && empty($globals_test) ) {
$types_to_register = array('GET', 'POST', 'COOKIE', 'SESSION', 'SERVER');
foreach ($types_to_register as $type) {
$arr = @${'_' . $type};
if (@count($arr) > 0)
extract($arr, EXTR_SKIP);
}
}

require_once("mainfile.php");

$PHP_SELF = "index.php";
GETMODULE($_GET[name],$_GET[file]);
//include ("db_config.php");
include ("editor.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><?=WEB_TITILE;?></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=<?echo ISO;?>">

<meta name="keywords" content="<?=WEB_TITILE;?>">
<meta name="description" content="<?=WEB_TITILE;?>">
<link href="css/template_css.css" rel="stylesheet" type="text/css">
<link href="templates/<?=WEB_TEMPLATES;?>/css/<?=WEB_TEMPLATES;?>.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="highslide/highslide.js"></script>
<script type="text/javascript" src="highslide/highslide-html.js"></script>
<script language="JavaScript1.2">
function makevisible(cur,which){
  if (which==0)
    cur.filters.alpha.opacity=100
  else
    cur.filters.alpha.opacity=40
}
</script> 
<script type="text/javascript">    
    hs.graphicsDir = 'highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.outlineWhileAnimating = true;
    hs.objectLoadTime = 'after';
</script>
<div class="highslide-html-content" id="highslide-html" style="width: 500px">
	<div class="highslide-move" style="border: 0; height: 18px; padding: 2px; cursor: default">
	    <a href="#" onclick="return hs.close(this)" class="control">[x] <?=_HIGH_CLOSE;?> </a>
	</div>
	<div class="highslide-body"></div>
	<div style="text-align: center; border-top: 1px solid silver; padding: 5px 0">
		Powered by <A HREF="<?=WEB_URL;?>" target="_blank"><?= _SCRIPT." "._VERSION ;?></A>
	</div>
</div>
<script type="text/javascript" src="js/java.js"></script>
<script language="JavaScript1.2">
function makevisible(cur,which){
  if (which==0)
    cur.filters.alpha.opacity=100
  else
    cur.filters.alpha.opacity=40
}
</script>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
//-->
</script>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
//-->
</script>

</head>

<body bgcolor="#ffffff">
<div id="dhtmltooltip"></div>


<TABLE width="920" height="100%" border="0" align="center" cellPadding="0" cellSpacing="0" >
<TBODY>
<TR valign="top">
<td align="center">
			<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
				<td width="11" height="11"><img src="images/pic/block01.jpg"></td>
				<td height="11" background="images/pic/block02.jpg"></td>
				<td width="12" height="11"><img src="images/pic/block03.jpg"></td>
				</tr>
              <tr>
			  <td width="11" align="center"  height="100%"  background="images/pic/block04.jpg"></td>
                <td  valign="top" align="center">
<?
if($name!="") { 
	include ("".$MODPATHFILE."");
} ?>
				</td>
				<td width="12" align="center"  height="100%"  background="images/pic/block05.jpg"></td>
              </tr>
				<tr>
				<td width="11" height="12"><img src="images/pic/block06.jpg"></td>
				<td height="11" background="images/pic/block07.jpg"></td>
				<td width="12" height="12"><img src="images/pic/block08.jpg"></td>
				</tr>
            </table>

	  </TD>

    </TR>
  </TBODY>
</TABLE>
</body>
</html>